﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
	
     config.toolbar_MyToolbar =  
     [  
         ['Source','-','Save','NewPage','Preview','-','Templates'],  
         ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],  
         ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],  
         ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],  
         '/',  
         ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],  
         ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],  
         ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],  
         ['Link','Unlink','Anchor','Maximize', 'ShowBlocks','-','About','TextColor','BGColor'],  
         ['Image','Flash','flvPlayer','Table','HorizontalRule','Smiley','SpecialChar','Page'],  
         '/',  
         ['Styles','Format','Font','FontSize']
           
     ];  
     config.extraPlugins = 'flvPlayer';  
	
	
	config.extraPlugins = 'apage';
	
	
	var __basePath = "<%=basePath %>";

	//改变默认的配置参数：
	config.language = 'zh-cn';
	config.uiColor = 'FFF';	// 背景颜色
	config.width = '590';		// 宽度
	config.height = '100';		// 高度
	config.skin = 'office2003';	// 界面v2,kama,office2003
	//config.toolbar = 'Full'	// 工具栏风格Full,Basic
	config.toolbar = 'MyToolbar';  
	config.toolbarCanCollapse = true;//工具栏是否可以被收缩
	config.toolbarLocation = 'top';//工具栏的位置 可选：bottom
	config.toolbarStartupExpanded = true;//工具栏默认是否展开
	config.resize_enabled = false;// 取消 “拖拽以改变尺寸”功能 plugins/resize/plugin.js

	config.filebrowserUploadUrl = __basePath + 'ckeditor/uploader?Type=File';
	config.filebrowserImageUploadUrl = __basePath + 'ckeditor/uploader?Type=Image';
	config.filebrowserFlashUploadUrl = __basePath + 'ckeditor/uploader?Type=Flash';

	// CKEditor 后台样式
	CKEDITOR_THEMES = {
		simple : [ // add Readonly button
				[ 'Source', '-', 'Readonly', '-', 'Templates' ],
				[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord',
						'-', 'Print', 'SpellChecker', 'Scayt' ],
				[ 'Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll',
						'RemoveFormat' ],
				[ 'Maximize' ],
				'/',
				[ 'Bold', 'Italic', 'Underline', 'Strike', '-',
						'Subscript', 'Superscript' ],
				[ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent',
						'Blockquote' ],
				[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight',
						'JustifyBlock' ],
				[ 'Link', 'Unlink', 'Image', 'PageBreak' ], '/',
				[ 'Styles', 'Format', 'Font', 'FontSize' ],
				[ 'TextColor', 'BGColor' ] ],
		mini : [ // add Readonly button
		[ 'Readonly', 'Undo', 'Redo', 'Bold', 'Italic', 'Underline',
				'Link', 'Unlink', 'FontSize', 'TextColor', 'BGColor',
				'JustifyLeft', 'JustifyCenter', 'JustifyRight',
				'JustifyBlock' ] ]
	};
	
	
};



